Amazon Interview Question

Write a try/catch block for a function.