Sky interview question

How many cubes in this triangular prism?