Removed return -1 because it didn't address a test case