U.S. Bank Interview Question

coding question, need to code