10 XP challenge

Zip Text Until One Message Ends

easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve

Task
Your mission

Alternate one character from left and one from right, stopping as soon as either string runs out. Discard leftover characters. Both strings contain 0 to 20 ASCII characters.

Examples

InputReturn
left = "ab", right = "12"

answer: "" → "a1" → "a1b2". The result is "a1b2".

"a1b2"
left = "abc", right = "9"

limit: 3 → 1. answer: "" → "a9". The result is "a9".

"a9"

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.