J.P. Morgan Interview Question

Writing loops in Python or other languages