Yash Kulkarni's submission of Beautiful Array | CodeChef