Intelliswift Interview Question

Write a procedure with exception handling and with given multiple logics to impose a requirement