Microsoft interview question

Snake and ladder code Bst 2nd largest element