Western Union interview question

abstraction