Background:
I originally posted this question last night, and received backlash on its vagueness. I have since consulted many personnel concerning not only the wording of the problem, but also its complexity (which is not O(1)). This programming problem is an evil spin on an Amazon interview que...
The point stands, though, that you can’t use big O when all the variables are fixed at constants like 250. Sorting a list of N elements: O(N log N). Sorting a list of 250 elements: O(1).