Amazon Interview Question

A string question related to string concatenation