All test cases not passing some are passing

i feel that i i applied straight forward wrong approach ,please help me correct it

the code you have provided does not perform modular exponentiation, please read more about modular exponentiation
code

thank you but (a*a)%c, b/2, c) what is happening here why we did this??

we are just diving the exponent by 2 and squaring the base at the same time. it based of princlpe that (2)^4 is equal to (2^2)^2