Ankur Dua's submission of Way Out | CodeChef