Question d’entretien chez Paytm

medium hard coding question from trees , Linked list and array