Six apartments A, B, C, D, E and F are built in a line, but not necessarily in the same order. 
All apartment are north-facing apartments. 
D is built second to the left of F. Neither D nor F is built at the ends. 
C is built at one of the ends.

Neither B nor E is built adjacent to D. 
Thus, case 1a, case 2 and case 2a are invalid. 

One apartment is built between A and E. 
Therefore, the final arrangement is:

Apartments B and C are built at the ends. Apartments D and E are built second from the ends. 
Similarly, 
Apartments A and F are built third from the ends.