LogicGate interview question

Multiple rounds. Technical take home.