Cadence Design Systems interview question

Find the nth smallest element in binary tree.