Devdutt Kumar's submission of ABABAABA | CodeChef