Sorted Union. I need help

Hello, I am working on a sorted union algorithm problem. And I’m not getting it. I’ve tried for loops and I’ve tried map. Plus, I’m not sure how to use the reduce method on this.