A figure is constructed from unit cubes. Each cube shares at least one face with another cube. What is the minimum number of cubes needed to build a figure with the front and side views shown?[asy]
defaultpen(linewidth(0.8));
path p=unitsquare;
draw(p^^shift(0,1)*p^^shift(1,0)*p);
draw(shift(4,0)*p^^shift(5,0)*p^^shift(5,1)*p);
label("FRONT", (1,0), S);
label("SIDE", (5,0), S);[/asy]<spanclass=′latex−bold′>(A)</span>3<spanclass=′latex−bold′>(B)</span>4<spanclass=′latex−bold′>(C)</span>5<spanclass=′latex−bold′>(D)</span>6<spanclass=′latex−bold′>(E)</span>7