Himanshu Jaju's submission of Program8 | CodeChef