Question ambiguity. please help


#1

the input says the number can go beyond long long range , but the solution provided converts it to an integer and solves it without a out of range error.
is there anything i’m missing?


#2

when it exceed long long range it goes to -ve side so thats why solution work properly