#C10098. Alternate String Merge
Alternate String Merge
Alternate String Merge
You are given two strings. Your task is to merge these two strings by alternating their characters. If one string is longer than the other, append the remaining characters from the longer string at the end.
For example, given the strings \( s_1 = \texttt{abc} \) and \( s_2 = \texttt{xyz} \), the merged result is \( \texttt{axbycz} \).
Input Format: Two lines where the first line contains the first string and the second line contains the second string.
Output Format: A single line containing the merged string.
inputFormat
The input consists of two lines: the first line contains string 1 and the second line contains string 2. Either string may be empty.
outputFormat
Output the merged string by alternating the characters of the two given strings. If one string is longer, append its remaining part after the alternation.
## sampleabc
xyz
axbycz