Max Flow Problem Leetcode Python Easy