Machine Coding Round
Build a Cab Billing System with following functionalities
1. Add a driver
2. Add a vehicle
3. Assign vehicle to driver
4. addTrip
5. calculateBill(driver_id)
calculateBill will consider all trips of the driver.
Suggestions for candidates
1. Make entity classes
2. Make different controller and service classes
3. throw exception for different validations and handle them