AppDynamics Interview Question

Write a solution for the 'Snakes and Ladders' board game.