class Solution { public: int Fibonacci(int n) { int a = 1; int b = 1; int res = 1; for(int i=3; i<=n; i++){ res = a + b; a = b; b = res; } return res; } };
class Solution { public: int Fibonacci(int n) { int a = 1; int b = 1; int res = 1; for(int i=3; i<=n; i++){ res = a + b; a = b; b = res; } return res; } };