Groupon interview question

Sort arrays of 0's, 1's and 2's Write polyfill for memoize function Output based javascript