WRONG ANSWER IN GCD2

My solution is https://www.codechef.com/viewsolution/29223551