MuleSoft Interview Question

How did you implement this?