manas agrawal's submission of Beautiful Array | CodeChef