Create a memoisation method for caching
Anoniem
I wasn't all too aware of memoisation as a concept, but the interviewer had a way it had to be done by passing a function as an argument. I got my mind in a twist with how to return the result of this, and it led me down a rabbit hole of time waste and needless confusion.