MAQ Software Interview Question

Concatenation of two string without using predefine functions and remove duplicate present in both the string after concatenation