The question is basically this one https://leetcode.com/problems/check-completeness-of-a-binary-tree/