Microsoft Interview Question

Simple logic questions, very interesting. Only made it to the first interview.