Structure function solving
One way I see working is

P(1) AND ( (P(5) AND P(2)) OR (P(5) AND P(6)) ) AND P(3) AND P(4)


another (I think better) is

P(1) AND P(5) AND ( P(2) OR P(6) ) AND P(3) AND P(4)