Flipkart Interview Question

Standard MC Question with some twist for DB