Build lexicographically smallest String from two given Strings
Given two strings X and Y of lowercase letters, of length N and M respectively, the task is to build another string Z by performing two types of operations: Choose any character from the string X, remove it from X, and add it to the end of Z.Choose any character from the string Y, remove it from Y,