title: Sum Fibonacci Numbers
signature: class Solution {
  
      public Long sumFibonacciNumbers(Integer n) {
source_py: def sum_fibonacci_numbers(n):
      if (n <= 0):
          return 0
      fibo = ([0] * (n + 1))
      fibo[1] = 1
      sm = (fibo[0] + fibo[1])
      for i in range(2, (n + 1)):
          fibo[i] = (fibo[(i - 1)] + fibo[(i - 2)])
          sm = (sm + fibo[i])
      return sm
source_cpp: int sum_fibonacci_numbers(int n) {
    if ( n <= 0 ) return 0;
    int fibo [ n + 1 ];
    fibo [ 0 ] = 0, fibo [ 1 ] = 1;
    int sum = fibo [ 0 ] + fibo [ 1 ];
    for ( int i = 2;
    i <= n;
    i ++ ) {
      fibo [ i ] = fibo [ i - 1 ] + fibo [ i - 2 ];
      sum += fibo [ i ];
    }
    return sum;
  }
question_info.extension: java
question_info.entry_fn_name: sumFibonacciNumbers
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 88, "inputs": {"n": 9}}, {"idx": 1, "outputs": 32951280098, "inputs": {"n": 50}}, {"idx": 2, "outputs": 33, "inputs": {"n": 7}}, {"idx": 3, "outputs": 28656, "inputs": {"n": 21}}, {"idx": 4, "outputs": 28656, "inputs": {"n": 21}}, {"idx": 5, "outputs": 232, "inputs": {"n": 11}}, {"idx": 6, "outputs": 196417, "inputs": {"n": 25}}, {"idx": 7, "outputs": 10610209857722, "inputs": {"n": 62}}, {"idx": 8, "outputs": 7, "inputs": {"n": 4}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Long expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(9, 88L);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(50, 32951280098L);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(7, 33L);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(21, 28656L);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(21, 28656L);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(11, 232L);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(25, 196417L);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(62, 10610209857722L);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(4, 7L);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Long expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(Long actual, Long expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8
question_info.commands: java __FILENAME__