Freshworks Interview Question

in technical merging and sorting of two strings by removing the duplicates