Solution to problem id fib