A family consists of a father, a mother, and three children: X, Y, and Z. X is the oldest child and is a doctor. Y is a teacher and is younger than X but older than Z. What is Z's profession?
In a linear arrangement, M is at one end, N is to the right of M, and O is to the left of N. P is sitting between N and O. Who is sitting at the other end?