Any of the 4 colour can be chosen for the first stripe. Any of the remaining 3 colours can be used for the second stripe. The third stripe can again be coloured in 3 ways (we can repeat the colour of the first stripe but not use the colours of the second stripe).
Similarly, There are 3 ways to colour each of the remaining stripes.
∴ The number of ways the flag can be coloured is 4(3)5 = (12) (3)4 = 12 x 81