Peloton Interactive interview question

3) Sorting colors question from leet code