MessengerPeople interview question

Code task was about "Replace Variables in Text Messages".