AppDynamics interview question

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