Pergunta de entrevista da empresa CA Technologies

Asked to find the answer to a logic problem dealing with sets of inputs.