IBM Interview Question

IQ questions were asked. Logical thinking