Haider Ali's submission of Way Out | CodeChef