MAQ Software Interview Question

Dutch flag problem.