HashedIn by Deloitte Interview Question

code for snake-ladder problem