I think my solution is not working for values greater than limit of integer,what

I think my solution is not working for values greater than limit of integer,what can be done in such cases?

Click here to start solving coding interview questions