UT Dallas Interview Question

to describe and implement a shell script