I applied online. The process took 1 week. I interviewed at ADD in Jan 2024
Interview
First round
Assignment Submission
Zomato has divided its customers into 3 segments [p1,p2,p3]. Based on these segments
different offers are applied to them on the cart page. The offers can be of type FLAT x
amount off or FLAT x% off.
Flat x amount off eg - if x is 10 and total order amount before offer was rs.200 and then
finally customer has to pay only 190
Flat x% off eg - if x is 10 and total order amount before offer was rs.200 and then finally
customer has to pay only 180
You are given API to add offers to a restaurant for a customer segment
Sample request -
POST - /api/v1/offer
{“restaurant_id”:1,”offer_type”: “FLATX”, “offer_value”:10, “customer_segment”:[“p1”]}
Sample response - {“response_msg”:”success”}
You have to write test cases for the cart api for different scenario of offers on a
restaurant
Sample request for applying offer
POST /api/v1/cart/apply_offer
{“cart_value”:200,”user_id”:1,“restaurant_id”:1}
Sample response - {“cart_value”: 190}
Note: For this you have to mock the api to fetch segment of a user for it to work. Following
mock is added by default
Sample request - GET /api/v1/user_segment?user_id=1
Sample response - {“segment”:”p1”}
Round 2(60min)
PSDS
Prepare DSA Mainly Arrays
Interviewr gave 2 problems
1.Group 0,1,2 Dutch National Flag Problem
2.maximum subarray sum divisible by k
(Cleared)
Round 3 Design Round
Design API testing framework from scratch in 90 min
cleared
Round 4 Hiring Manager
All About previous project done in company
(Rejected in this round)
Interview questions [1]
Question 1
1.Group 0,1,2 Dutch National Flag Problem
2.maximum subarray sum divisible by k
(Cleared)