hackerrank snakes and ladder