Requirement -
- This rental system will have some stations where car will be parked.
- Every station will have some type of cars (example - SUV, Hatchback, Bike, Sedan etc) and will have some fixed price for each type of car (11/hourforSUV,12/per hour for Sedan etc.)
- User can book car from any station and drop at same or any other station
- When user searches for a car - list all stations with that type of available car + station with cheapest price should be on top followed by second cheapest and so on..(order by increasing per hour price)
- When two stations have same price, list station nearest to the customer
Supported operations
- Onboard station - (station_name, List
- Search Vehicle
- Book vehicle
- Drop vehicle
- Station Report - available car of each type, booked car of each type etc.
Company - Flipkart
Round - 1, Machine Coding