Min depth of binary tree python accepted