Mark Kornejchik's submission of Beautiful Array | CodeChef