TD interview question

Same as the above Python question but for Bash.