Solution:
Key idea: D or L is decided by the –OH on the lowest chiral carbon (the chiral carbon farthest from the C=O group) in the Fischer projection. If that –OH is on the right, as in D-glyceraldehyde, the sugar is D; if it is on the left, as in L-glyceraldehyde, the sugar is L.
Step 1 — Find the chiral carbons. C2, C3, C4 and C5 each carry four different groups, so they are chiral. C6 (CH2OH) has two H atoms, so it is not chiral.
Step 2 — Pick the lowest chiral carbon. The chiral carbon farthest from the –CHO group (C1) is C5.
Step 3 — Read its –OH. At C5 the –OH is written on the left and H on the right. This matches L-glyceraldehyde.
Step 4 — Check. In D-glucose the –OH groups at C2, C3, C4, C5 are right, left, right, right. Here they are left, right, left, left – every one is reversed, so this compound is the mirror image of D-glucose, i.e. L-glucose.
Therefore, the compound has the L-configuration.