title: Count Number Ways Reach Given Score Game
signature: function count_number_ways_reach_given_score_game(n)
test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(n, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(n) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver(83, 30)
      print(string.format("TEST-0...%s",result))
  
      result = driver(29, 4)
      print(string.format("TEST-1...%s",result))
  
      result = driver(17, 1)
      print(string.format("TEST-2...%s",result))
  
      result = driver(12, 1)
      print(string.format("TEST-3...%s",result))
  
      result = driver(93, 37)
      print(string.format("TEST-4...%s",result))
  
      result = driver(55, 16)
      print(string.format("TEST-5...%s",result))
  
      result = driver(97, 33)
      print(string.format("TEST-6...%s",result))
  
      result = driver(75, 27)
      print(string.format("TEST-7...%s",result))
  
      result = driver(22, 2)
      print(string.format("TEST-8...%s",result))
  
      result = driver(52, 10)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
source_py: def count_number_ways_reach_given_score_game(n):
      table = [0 for i in range((n + 1))]
      table[0] = 1
      for i in range(3, (n + 1)):
          table[i] += table[(i - 3)]
      for i in range(5, (n + 1)):
          table[i] += table[(i - 5)]
      for i in range(10, (n + 1)):
          table[i] += table[(i - 10)]
      return table[n]
source_cpp: int count_number_ways_reach_given_score_game(int n) {
    int table [ n + 1 ], i;
    for ( int j = 0;
    j < n + 1;
    j ++ ) table [ j ] = 0;
    table [ 0 ] = 1;
    for ( i = 3;
    i <= n;
    i ++ ) table [ i ] += table [ i - 3 ];
    for ( i = 5;
    i <= n;
    i ++ ) table [ i ] += table [ i - 5 ];
    for ( i = 10;
    i <= n;
    i ++ ) table [ i ] += table [ i - 10 ];
    return table [ n ];
  }