Nabla Infotech interview question

Exception handling program with file handling