Citi Interview Question

Unix commands, Situation solution