Himanshu Jaju's submission of Program9 | CodeChef