Demandbase Interview Question

Sort through this array once using one loop