Few test cases are failing

There are a few testcases failing for the code I have written. Can you please point out the missing cases or the error in the code?

while inserting permutation of boxes, either insert all 6 permutations or insert in such a manner that ordering of l and w doesn’t matter!
eg: you can’t stack box (3,2,4) over (3,3,1) // (h,l,w)
but in actual you can!! (3,4,2) over (3,3,1).


refer this

1 Like