Epic interview question

Just basic logic questions