UST interview question

Custom exception with example