-
Anu (128) has one neighbour, Bala (135), who is taller. Anu says 1.
-
Bala (135) has neighbours Anu (128) and Chetan (122). Both are shorter. Bala says 0.
-
Chetan (122) has neighbours Bala (135) and Divya (140). Both are taller. Chetan says 2.
-
Divya (140) has neighbours Chetan (122) and Esha (131). Both are shorter. Divya says 0.
-
Esha (131) has one neighbour, Divya (140), who is taller. Esha says 1.
So they say 1, 0, 2, 0, 1.
-
(B) 0, 2, 0, 2, 0: these are the numbers of shorter neighbours, not taller ones.
-
(C) 1, 0, 2, 0, 0: Esha is at the end, but she still has one neighbour, Divya, who is taller. Esha says 1, not 0.
-
(D) 1, 1, 2, 1, 1: Bala and Divya are taller than both their neighbours, so they say 0. Only the people right next to you count, not someone taller further along the row.