Tria Federal Interview Question

How would you improve this API?