Total outcomes - 2^{4 }(Because 4 coins are tossed simultaneously and each coin has 2 outcomes-either head or tail)

Now out of this 16 outcomes, one will be all HHHH(all heads) and other will be all TTTT(all tails) rest 14 outcomes will have atleast one head and one tail.

So, probability, favourable events/total outcome

14/16 = 7/8