Dexian Interview Question

OOPS, Logical program, Try catch block