K12 Insight interview question

Basic logic questions asked for this