Pergunta de entrevista da empresa Tata Consultancy Services

Solve a given Boolean expression?