IKS Health interview question

Logical and syntax based