Add O(n^2) pick stock times solution.