Pergunta de entrevista da empresa U.S. Bank

coding question, need to code