MAQ Software Interview Question

Quick Sort and Simple for loop