Test Case 2 failedddd


help me out with a test example.

@sk14452
As the distance is calculated as the sum of squares of coordinates , its value is very likely to exceed the range of int.
Use long long int in your code for all instances of variables and it works fine.