title: Efficient Way To Multiply With 7
signature: fun efficientWayToMultiplyWith7(n: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(41, 287)
      println("TEST-0...${result}")
      
      result = driver(42, 294)
      println("TEST-1...${result}")
      
      result = driver(62, 434)
      println("TEST-2...${result}")
      
      result = driver(4, 28)
      println("TEST-3...${result}")
      
      result = driver(31, 217)
      println("TEST-4...${result}")
      
      result = driver(75, 525)
      println("TEST-5...${result}")
      
      result = driver(5, 35)
      println("TEST-6...${result}")
      
      result = driver(75, 525)
      println("TEST-7...${result}")
      
      result = driver(85, 595)
      println("TEST-8...${result}")
      
      result = driver(19, 133)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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 );
  }