The correct option is
D Detailed step-by-step solution:
In this pattern, the number of boxes is increasing by 1 in every group as we move from left to right.
The color of the boxes, blue and red, are also repeating alternatively in that particular order.
There is only 1 blue box in the first line, 1 red box is added in the second line, 1 blue box is again added in the third line, and 1 red box is added in the fourth line.
So, in the fifth line, 1 blue box will be added to the line.
The complete pattern will be as shown below.
Hence, Option B is correct.