Question d’entretien chez Sabre

coding:- 1) Length of minimum sub array with K distinct elements which are also present in another array. 2) Problem on detaching and creating a new sub tree.