Magnaquest interview question

Example for your logical thinking?