BlackRock interview question

Implementation of snakes and ladders , sql query for a scenario given using join and subquery , java concepts