Create a function that memoizes the result of a computationally expensive function.
HardProblem Statement
Create a function that memoizes the result of a computationally expensive function.
Sample Input
A function f(x) = x * x and input 5 called twice.
Sample Output
Result from computation 25 Result from cache 25
Limits
Time: 2s · Memory: 256 MB