ACI Worldwide Interview Question

How to programmatically solve a problem in a more efficient way