Backbase interview question

Java programme with medium difficulty