Question ambiguity. please help


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?


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