Alif Al Hasan's submission of P-I | CodeChef