Prudential Interview Question

Designing an API and why that way for a certain scenario