The function returns 1 for negative and even input values and -1 for positive and odd input values.
