The filter function illustrated in the material is memory efficient, using tail recursion.
Take a moment here to implement the straightforward recursive filtering function, which isn't tail recursive.
Solution