I don't think it handles all test cases


#1

My code works even though I have not handled " -500".
That is space before ‘-’ sign.