solution for fibonacci series https://www.codeeval.com/open_challenges/22/