Swiggy Interview Question

Machine coding round for search engine