Pergunta de entrevista da empresa Samsung Electronics

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