Question: 
Write a python function to find the maximum volume of a cuboid with given sum of sides.


Model's Code:
def max_volume(s):
    if s < 3:
        return 0
    a = s // 4
    b = (s - 4 * a) // 2
    return a * a * b if a > 0 and b > 0 else 0



Sample Correct Code:
def max_volume (s): 
    maxvalue = 0
    i = 1
    for i in range(s - 1): 
        j = 1
        for j in range(s): 
            k = s - i - j 
            maxvalue = max(maxvalue, i * j * k)         
    return maxvalue 


Asserts:
assert max_volume(8) == 18
assert max_volume(4) == 2
assert max_volume(1) == 0


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 318 of 974: 228/318 (71.69811320754717%): failed