Design an API for pay computation with retries | DoorDash Interview Question