Current: SDE2 at Tier1 company
Experience: 3YOE
Current TC: ~30L cash
1st round: Machine Coding
Problem statement involved designing Car Rental service, with features like:
- add car to branch
- allocate price to type of car of that branch. so car types can be SUV, hatchback, sedan, so price of each car tyupe varies from branch to branch.
- bookCar, so user can book particular car type from a specific branch.
- view inventory, viewing status of each car and price in each branch.
Time given: 2 hrs, had to pass all required cases mentioned.
We can use any database/ in memory storage, console application/ web application, etc.
My experience:
So I had coded the whole as Java application, with all features/ api working as expected in 2 hours using proper OOPS concepts, design pattern, exception handling and separation of concern among classes and methods.
After that had 30mins of evaluation round, where you had to tour the interviewer around your code and explain everything why, what you've implemented.
Inteviewer looks satisfied, he gave few more cases to see if your code can be scaled further or more features can be added with minimal code changes as per your design or not.
My code was fitting all cases and scalibility questions asked by interviewer, and his words were "perfect" to be exact post code walkthrough.
Verdict: REJECT
Conclusion, so I spent ~3 hours, to give PhonePe interview, had to take leave that day, and implemented something and gave a walkaround around my code passing all test cases, handled all cases as per interviewer, and got rejected by some mad interviewer,
Instead I would have contributed to some open source.
I cant do anything but will just avoid giving interview of such company in future.