Visa Inc. Interview Question

nothing unexpected, simple java code to write method with loops.