interview questions on logical operators