Where i m getting wrong

where is my code getting wrong for Big gcd problem.

@Affan-Mokarram-202031887744398
Just look at the constraints. You cannot store such large numbers in long. You have to use BigInteger class.