Question d’entretien chez Samsung Electronics

Find kth node in tree. Print prime numbers in a range.