BNSF Railway Interview Question

API endpoint and handler functions in Java