Mutually exclusive is NOT the same as independent. If two non-impossible events cannot co-occur, then one happening makes the other impossible, so they are strongly dependent.
Return one of these strings, checked in this order:
"mutually exclusive" when "independent" when "dependent" otherwisesolve({1,3,5}, {2,4,6}, {1,2,3,4,5,6}) -> "mutually exclusive"
solve({2,4,6}, {3,6}, {1,2,3,4,5,6}) -> "independent"
solve({2,4,6}, {4,5,6}, {1,2,3,4,5,6}) -> "dependent"
Sign in to write and run your own code.
solve(...)