leetcode 2161 Partition Array According to Given Pivot