Alif Al Hasan's submission of GN | CodeChef