J.P. Morgan interview question

UNIX Shell scripting