74. Values Common to Two Tensors

Medium

Return the sorted, de-duplicated values present in both tensors a and b.

Input

a = tensor([1, 2, 3, 4, 5])
b = tensor([3, 5, 7, 9])

Output

tensor([3, 5])
Implement solve(...)