Find The Pivot Integer Leetcode Python