title: Count Number Ways Reach Given Score Game
signature: def countNumberWaysReachGivenScoreGame(n: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        83, 
        30    
      )}")   
  
  
      println(s"TEST-1...${driver(
        29, 
        4    
      )}")   
  
  
      println(s"TEST-2...${driver(
        17, 
        1    
      )}")   
  
  
      println(s"TEST-3...${driver(
        12, 
        1    
      )}")   
  
  
      println(s"TEST-4...${driver(
        93, 
        37    
      )}")   
  
  
      println(s"TEST-5...${driver(
        55, 
        16    
      )}")   
  
  
      println(s"TEST-6...${driver(
        97, 
        33    
      )}")   
  
  
      println(s"TEST-7...${driver(
        75, 
        27    
      )}")   
  
  
      println(s"TEST-8...${driver(
        22, 
        2    
      )}")   
  
  
      println(s"TEST-9...${driver(
        52, 
        10    
      )}")   
  
  }
  
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 ];
  }