Wayflyer interview question

How would you improve this API? Why did you implement x like this?