Adobe interview question

Logical programming concepts