Pregunta de entrevista de Cadence Design Systems

Find the nth smallest element in binary tree.