Broadridge interview question

merge two strings we need to write code on paper