Fast Enterprises interview question

Logic questions