KAZ Software Interview Question

Error handling of a code