Veeva Systems interview question

Implement join function in java