Shivam Mahendru's submission of ABABAABA | CodeChef