Lanyon interview question

Basic logical reasoning