Sky Interview Question

How many cubes in this triangular prism?