title: Detect If Two Integers Have Opposite Signs
signature: def detectIfTwoIntegersHaveOppositeSigns(x: Int, y: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Boolean , expected: Boolean): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(x: Int, y: Int, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        59, -99, 
        true    
      )}")   
  
  
      println(s"TEST-1...${driver(
        -20, -21, 
        false    
      )}")   
  
  
      println(s"TEST-2...${driver(
        -100, 79, 
        true    
      )}")   
  
  
      println(s"TEST-3...${driver(
        54, -49, 
        true    
      )}")   
  
  
      println(s"TEST-4...${driver(
        -16, 16, 
        true    
      )}")   
  
  
      println(s"TEST-5...${driver(
        -23, -68, 
        false    
      )}")   
  
  
      println(s"TEST-6...${driver(
        93, 37, 
        false    
      )}")   
  
  
      println(s"TEST-7...${driver(
        24, -61, 
        true    
      )}")   
  
  
      println(s"TEST-8...${driver(
        -8, 69, 
        true    
      )}")   
  
  
      println(s"TEST-9...${driver(
        29, 10, 
        false    
      )}")   
  
  }
  
source_py: def detect_if_two_integers_have_opposite_signs(x, y):
      return ((x ^ y) < 0)
source_cpp: bool detect_if_two_integers_have_opposite_signs(int x, int y) {
    return ( ( x ^ y ) < 0 );
  }