Challenge
Implement positive_and_even(a) for an integer a. Return the exact string "satisfactory" if a is strictly positive and even. Otherwise return "unsatisfactory". Zero is not positive.
Target complexity: O(1)
Return values are checked by type. Use the exact function name. Print output is not your answer. Tests have time and memory limits.
Public examples
Arguments
[3]
Expected return
unsatisfactory
Arguments
[4]
Expected return
satisfactory
Hint
Match the return value and type to the contract.
The worked solution unlocks after completion, or with Premium access.