IQVIA interview question

String and string bulider code