Solution for fibonacci sequence