The function seems to be returning -1 for all inputs except for 0, where it returns 1.

