Sum of Squares From Cuboid