ION Group interview question

snake and ladder game data structure used