Answer solution for cubes