Amazon Interview Question

logical and reasoning questions