Sahil Grover's submission of Ups and Downs | CodeChef