Cvent interview question

Write a code to parse a binary search tree.and also a puzzle that is 3 bulb puzzle.