The function f(x) takes a string input and returns either zero or one based on whether the input is equal to "apple".

