Teamnet interview question

Print an array, but with a catch.