title: Sum Fibonacci Numbers
signature: fun sumFibonacciNumbers(n: Int): Long {
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.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.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Long, expected:Long):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Long):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(9, 88)
      println("TEST-0...${result}")
      
      result = driver(50, 32951280098)
      println("TEST-1...${result}")
      
      result = driver(7, 33)
      println("TEST-2...${result}")
      
      result = driver(21, 28656)
      println("TEST-3...${result}")
      
      result = driver(21, 28656)
      println("TEST-4...${result}")
      
      result = driver(11, 232)
      println("TEST-5...${result}")
      
      result = driver(25, 196417)
      println("TEST-6...${result}")
      
      result = driver(62, 10610209857722)
      println("TEST-7...${result}")
      
      result = driver(4, 7)
      println("TEST-8...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: sumFibonacciNumbers
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn