amarmalik's submission of Way Out | CodeChef