Waymo Interview Question

Is it better to execute the solution on the frontend or on the backend side? Why?