https://www.codechef.com/viewsolution/34912348
anyone help me where I’m wrong.
https://www.codechef.com/viewsolution/33134359
check this