Leetcode Check Completeness Of A Binary Tree In Python