Domanda di colloquio di Samsung Electronics

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