Pergunta de entrevista da empresa Nagarro

They asked me to code DNF algorithm both optimised and Bruteforce approach