Implementing better fibonacci sequence generator

This solution is better O(n) because it is not recursive.