Bank of America interview question

why interface has to be implemented