title: Efficient Way To Multiply With 7
signature: def efficientWayToMultiplyWith7(n: 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, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        41, 
        287    
      )}")   
  
  
      println(s"TEST-1...${driver(
        42, 
        294    
      )}")   
  
  
      println(s"TEST-2...${driver(
        62, 
        434    
      )}")   
  
  
      println(s"TEST-3...${driver(
        4, 
        28    
      )}")   
  
  
      println(s"TEST-4...${driver(
        31, 
        217    
      )}")   
  
  
      println(s"TEST-5...${driver(
        75, 
        525    
      )}")   
  
  
      println(s"TEST-6...${driver(
        5, 
        35    
      )}")   
  
  
      println(s"TEST-7...${driver(
        75, 
        525    
      )}")   
  
  
      println(s"TEST-8...${driver(
        85, 
        595    
      )}")   
  
  
      println(s"TEST-9...${driver(
        19, 
        133    
      )}")   
  
  }
  
source_py: def efficient_way_to_multiply_with_7(n):
      return ((n << 3) - n)
source_cpp: long efficient_way_to_multiply_with_7(long n) {
    return ( ( n << 3 ) - n );
  }