KPMD interview question

Asked to wtite a program to convert array to String