Need help returning -1 in function

Printable View