Uber interview question

snake ladder question implementation (already on leetcode)