title: Middle Of Three Using Minimum Comparisons 1
signature: def middleOfThreeUsingMinimumComparisons1(a: Int, b: Int, c: 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(a: Int, b: Int, c: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b, c),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        43, 24, 7, 
        24    
      )}")   
  
  
      println(s"TEST-1...${driver(
        76, 54, 66, 
        66    
      )}")   
  
  
      println(s"TEST-2...${driver(
        57, 5, 40, 
        40    
      )}")   
  
  
      println(s"TEST-3...${driver(
        10, 13, 4, 
        10    
      )}")   
  
  
      println(s"TEST-4...${driver(
        59, 47, 56, 
        56    
      )}")   
  
  
      println(s"TEST-5...${driver(
        92, 14, 50, 
        50    
      )}")   
  
  
      println(s"TEST-6...${driver(
        49, 62, 65, 
        62    
      )}")   
  
  
      println(s"TEST-7...${driver(
        16, 95, 12, 
        16    
      )}")   
  
  
      println(s"TEST-8...${driver(
        33, 41, 90, 
        41    
      )}")   
  
  
      println(s"TEST-9...${driver(
        66, 63, 46, 
        63    
      )}")   
  
  }
  
source_py: def middle_of_three_using_minimum_comparisons_1(a, b, c):
      if (a > b):
          if (b > c):
              return b
          elif (a > c):
              return c
          else:
              return a
      elif (a > c):
          return a
      elif (b > c):
          return c
      else:
          return b
source_cpp: int middle_of_three_using_minimum_comparisons_1(int a, int b, int c) {
    if ( a > b ) {
      if ( b > c ) return b;
      else if ( a > c ) return c;
      else return a;
    }
    else {
      if ( a > c ) return a;
      else if ( b > c ) return c;
      else return b;
    }
  }