Pre PYQs CSAT

UPSC Prelims 2023 CSAT question 66

A flag has to be designed with 4 horizontal stripes using some or all of the colours red, green and yellow. What is the number of different ways in which this can be done so that no two adjacent stripes have the same colour ?