Independently derived solution.
Look along the arrow marked Front view. For each left-to-right column, retain the greatest height among cubes directly behind one another. The first two columns each reach 3 cubes high, and the rightmost column reaches 1 cube high. Draw column heights 3, 3 and 1 on a common baseline, with internal unit-square lines. The front view contains 7 unit squares. Assess the drawing against this projection.