WA IN CHFGCD

https://www.codechef.com/viewsolution/49814637
can anyone tell what’s wrong in my code

try x=1 and y=1 . Your code is giving 0 whereas the correct answer should be 2 .