which figure is missing in the pattern?

which figure is missing in the pattern?
Answer
Explanation:
Step1: Observe the pattern
The number of green - colored squares is increasing by 1 each time, and the blue - colored square is always at the end of the 'L' - shaped figure. The first figure has 1 green square, the second has 2 green squares, the third has 3 green squares, the fourth has 4 green squares. So the missing figure should have 5 green squares and 1 blue square at the end of the 'L' - shape.
Step2: Analyze the options
Option A has 6 green squares, Option B has only green squares without a blue square, Option C has 4 green squares and 1 blue square, Option D has 5 green squares and 1 blue square at the end of the 'L' - shape.
Answer:
D.