IBM interview question

Basic coding problems. Lists, Arrays and UNIX Commands.