iFixit Interview Question

Implement a basic array sorting algorithm.