Implement Fibonacci with efficiency constraints | Google Interview Question