Wipro Interview Question

logical reasoning