title: Compute N Under Modulo P
signature: def computeNUnderModuloP(n: Int, p: 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, p: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n, p),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        85, 18, 
        0    
      )}")   
  
  
      println(s"TEST-1...${driver(
        14, 13, 
        0    
      )}")   
  
  
      println(s"TEST-2...${driver(
        83, 21, 
        0    
      )}")   
  
  
      println(s"TEST-3...${driver(
        30, 35, 
        0    
      )}")   
  
  
      println(s"TEST-4...${driver(
        96, 51, 
        0    
      )}")   
  
  
      println(s"TEST-5...${driver(
        55, 58, 
        0    
      )}")   
  
  
      println(s"TEST-6...${driver(
        82, 71, 
        0    
      )}")   
  
  
      println(s"TEST-7...${driver(
        12, 74, 
        44    
      )}")   
  
  
      println(s"TEST-8...${driver(
        38, 3, 
        0    
      )}")   
  
  
      println(s"TEST-9...${driver(
        46, 73, 
        67    
      )}")   
  
  }
  
source_py: def compute_n_under_modulo_p(n, p):
      if (n >= p):
          return 0
      result = 1
      for i in range(1, (n + 1)):
          result = ((result * i) % p)
      return result
source_cpp: int compute_n_under_modulo_p(int n, int p) {
    if ( n >= p ) return 0;
    int result = 1;
    for ( int i = 1;
    i <= n;
    i ++ ) result = ( result * i ) % p;
    return result;
  }