Pergunta de entrevista da empresa EAB

How would you code a game of chutes and ladders?