Please provide me observation about this problem

i am unable to solve this challenge. please provide me a help to solve this challenge.

see u need to use 2 pointer approach in this question

so u are basically required to tell a , b such that
a ^ 2 + b ^2 = c
and c is given in the question

so basically we can start a = 0 and b = sqrt ( c) run the while loop till a < b
why sqrt( c)
kyoki we are bascilly required to do b^2 so
agar c = 25
then b = sqrt(25) karoge to b = 5
se start karoge

but agar b > sqrt ( c ) se bada loge to vo possible solution nhi dega
a ^ 2 + b^2 = c ka

so start start a = 0 and b = sqrt ( c)

then check if a ^ 2 + b^2 = c
if yes print a , b and a++ b-- (contract window from both sides)
else if

a ^ 2  + b^2  >  c 

then u need to contract the search window leftwards
ie b–
else a++

eg:
c = 25
a = 0 b = 5
0 + 25 == 25 print a , b | a++ b-- now a = 1 b= 4
now
calculate a ^ 2 + b^2 , 1 + 16 == 17 < 25
so increment a
now a = 2
calculate a ^ 2 + b^2 = c
4 + 16 < 25
again a++
calculate a ^ 2 + b^2 = c
9 + 16 == 25 print a ,b || a++ , b–
now a = 4 b = 3
now the while loop breaks a > b