U.S. Bank interview question

coding question, need to code