function industry

This problem has anonymous function, if else statement, and logical
operator.