Partition Array According to Given Pivot | Leetcode 2161