Dhruv Kakadiya's submission of Beautiful Array | CodeChef