Sort Color Problem Leetcode Python