Samarth Gupta's submission of Beautiful Arrays | CodeChef