Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Build the result character by character. At each step, you choose a character from one of the two strings.
If the next character of the first string is larger than that of the second string, or vice versa, it's optimal to use the larger one.
If both are equal, think of a criteria that lets you decide which string to consume the next character from.
You should choose the next character from the larger string.