American Express Interview Question

How would you test that the code you altered is correct?