BluePi interview question

Basic logic.