Leetcode Maximum Subarray Solution Navigator Registration To Vote