Domanda di colloquio di Nagarro

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