Fabric Interview Question

Write function to calculate 10 to the nth power. Write function that memozies input for the previous function.