Maximum Performance of a Team - Leetcode 1383 - Python