Infineon Technologies interview question

Merge strings alternately - Leetcode Create a hashmap from the result obtained