Atidan interview question

Simple Logical question