U.S. Bank Interview Question

Basic Java knowledge, small codility task