This question was asked in Example 16

Number of different colour flags atleast 2 colour

KR Balaji's image