Logicalis interview question

P1 Scenario