Let N represent not infected and I represent infected.
Then the possibilities are
I I I I
N I I I
N N I I
N N N I
I I I I represents the possibility that all teh four bro hug was with someone contagious
The probability that all four hugs are with the infected is given by

N I I I represents the possibility that only three of the four bro hug was with someone infected
The only three of the four bro hug was with someone infected is given by
