title: Count Number Ways Reach Given Score Game
signature: function countNumberWaysReachGivenScoreGame(n) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(83, 30);
    console.log(`TEST-0...${result}`);
  
    result = driver(29, 4);
    console.log(`TEST-1...${result}`);
  
    result = driver(17, 1);
    console.log(`TEST-2...${result}`);
  
    result = driver(12, 1);
    console.log(`TEST-3...${result}`);
  
    result = driver(93, 37);
    console.log(`TEST-4...${result}`);
  
    result = driver(55, 16);
    console.log(`TEST-5...${result}`);
  
    result = driver(97, 33);
    console.log(`TEST-6...${result}`);
  
    result = driver(75, 27);
    console.log(`TEST-7...${result}`);
  
    result = driver(22, 2);
    console.log(`TEST-8...${result}`);
  
    result = driver(52, 10);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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 ];
  }