title: Maximize Volume Cuboid Given Sum Sides 1
signature: def maximizeVolumeCuboidGivenSumSides1(s: 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(s: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(s),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        8, 
        18    
      )}")   
  
  
      println(s"TEST-1...${driver(
        96, 
        32768    
      )}")   
  
  
      println(s"TEST-2...${driver(
        96, 
        32768    
      )}")   
  
  
      println(s"TEST-3...${driver(
        96, 
        32768    
      )}")   
  
  
      println(s"TEST-4...${driver(
        12, 
        64    
      )}")   
  
  
      println(s"TEST-5...${driver(
        95, 
        31744    
      )}")   
  
  
      println(s"TEST-6...${driver(
        72, 
        13824    
      )}")   
  
  
      println(s"TEST-7...${driver(
        81, 
        19683    
      )}")   
  
  
      println(s"TEST-8...${driver(
        42, 
        2744    
      )}")   
  
  
      println(s"TEST-9...${driver(
        13, 
        81    
      )}")   
  
  }
  
source_py: def maximize_volume_cuboid_given_sum_sides_1(s):
      length = int((s / 3))
      s -= length
      breadth = (s / 2)
      height = (s - breadth)
      return int(((length * breadth) * height))
source_cpp: int maximize_volume_cuboid_given_sum_sides_1(int s) {
    int length = s / 3;
    s -= length;
    int breadth = s / 2;
    int height = s - breadth;
    return length * breadth * height;
  }