Shortest Path to Tree Leaf - Coding problem | OneNoughtOne