This is a sample ticket breakdown I wrote for a previous interview question.
We are a staffing company whose primary purpose is to book Agents at Shifts posted by Facilities on our platform. We're working on a new feature which will generate reports for our client Facilities containing info on how many hours each Agent worked in a given quarter by summing up every Shift they worked. Currently, this is how the process works:
- Data is saved in the database in the Facilities, Agents, and Shifts tables
- A function
getShiftsByFacility
is called with the Facility's id, returning all Shifts worked that quarter, including some metadata about the Agent assigned to each - A function
generateReport
is then called with the list of Shifts. It converts them into a PDF which can be submitted by the Facility for compliance.