Independently derived solution.
Look directly along the arrow marked Side view. Cubes behind one another occupy the same position in the view, so draw the maximum visible height at each horizontal position, not a separate square for every cube in the solid. The three positions have heights 1, 3 and 2. Draw those columns on a common baseline; the view contains 6 unit squares. Assess the drawing against this silhouette.