Amazon interview question

Write a try/catch block for a function.