KPMD Interview Question

Asked to wtite a program to convert array to String