Lab49 Interview Question

write a higher order function for memoization.