Dinesh Goyal's submission of Beautiful Array | CodeChef