Continental interview question

Logic case study question