Regal Interview Question

How would you go about implementing X to this api?