30. Common Values

Easy

Return the sorted array of common values that appear in both a and b, with no duplicates.

Input

a = [1 2 3 4 5]
b = [3 5 7 9]

Output

[3 5]

Sign in to write and run your own code.

Implement solve(...)