title: Check Line Passes Origin
signature: def checkLinePassesOrigin(x1: Int, y1: Int, x2: Int, y2: 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(x1: Int, y1: Int, x2: Int, y2: Int, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        1, 28, 2, 56, 
        true    
      )}")   
  
  
      println(s"TEST-1...${driver(
        10, 0, 20, 0, 
        true    
      )}")   
  
  
      println(s"TEST-2...${driver(
        0, 1, 0, 17, 
        true    
      )}")   
  
  
      println(s"TEST-3...${driver(
        1, 1, 10, 10, 
        true    
      )}")   
  
  
      println(s"TEST-4...${driver(
        82, 86, 19, 4, 
        false    
      )}")   
  
  
      println(s"TEST-5...${driver(
        78, 86, 11, 6, 
        false    
      )}")   
  
  
      println(s"TEST-6...${driver(
        13, 46, 33, 33, 
        false    
      )}")   
  
  
      println(s"TEST-7...${driver(
        18, 29, 95, 12, 
        false    
      )}")   
  
  
      println(s"TEST-8...${driver(
        42, 35, 25, 36, 
        false    
      )}")   
  
  
      println(s"TEST-9...${driver(
        29, 17, 45, 35, 
        false    
      )}")   
  
  }
  
source_py: def check_line_passes_origin(x1, y1, x2, y2):
      return ((x1 * (y2 - y1)) == (y1 * (x2 - x1)))
source_cpp: bool check_line_passes_origin(int x1, int y1, int x2, int y2) {
    return ( x1 * ( y2 - y1 ) == y1 * ( x2 - x1 ) );
  }