ZenQ interview question

Logical questions