title: Compute Average Two Numbers Without Overflow
signature: def computeAverageTwoNumbersWithoutOverflow(a: Int, b: 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, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        1, 44, 
        22    
      )}")   
  
  
      println(s"TEST-1...${driver(
        6, 61, 
        33    
      )}")   
  
  
      println(s"TEST-2...${driver(
        75, 20, 
        47    
      )}")   
  
  
      println(s"TEST-3...${driver(
        51, 17, 
        34    
      )}")   
  
  
      println(s"TEST-4...${driver(
        19, 25, 
        22    
      )}")   
  
  
      println(s"TEST-5...${driver(
        82, 98, 
        90    
      )}")   
  
  
      println(s"TEST-6...${driver(
        72, 21, 
        46    
      )}")   
  
  
      println(s"TEST-7...${driver(
        48, 41, 
        44    
      )}")   
  
  
      println(s"TEST-8...${driver(
        12, 17, 
        14    
      )}")   
  
  
      println(s"TEST-9...${driver(
        41, 80, 
        60    
      )}")   
  
  }
  
source_py: def compute_average_two_numbers_without_overflow(a, b):
      return floor(((a + b) / 2))
source_cpp: int compute_average_two_numbers_without_overflow(int a, int b) {
    return ( a + b ) / 2;
  }