Rivigo Interview Question

Random logical reasoning