Himanshu Jaju's submission of PRIME | CodeChef