Custom Enum.filter implementation

No Enum library functions or list comprehensions allowed.
You may need to use an if statement.