Amazon Interview Question

I was asked to write on paper code for finding repeating elements in a BST.