Egyptian (3, *) prints out:
*
***
*****
Mayan (3, #) prints out:
###
#####
#######
F(1) = 1.
F(2) = 1.
F(i) = F(i-1) + F(i-2) for every integer i > 2.
Implement a C++ function that computes the ith
Fibonacci number F(i), for any user-specified i >= 1.
Make sure that your solution uses a constant amount of storage and
a total number of arithmetic operations proportional to input i.