X Interview Question

String parsing questions, shell script functions