Find the probability that a person tossing three coins will get either all heads or all tails for the second time on the fifth toss.

Find the probability that a person tossing three coins will get either all heads or all tails for the second time on the fifth toss.