Amazon Interview Question

Write a try/catch block for a function.

Amazon Interview Question: Write a try/catch block for a function. | Glassdoor