Nth Fibonacci Series Leetcode Problems Javascript