Vivek Puri's submission of Fombinatorial | CodeChef