Western Union interview question

Java , Oops, Scenario based questions.