Predict output when iterating ordered keys | Intersystems Interview Question