Microsoft Interview Question

Snake and ladder code Bst 2nd largest element