Amazon interview question

Linux, programming, scenario and puzzle