Walmart Global Tech interview question

How many leaves does a perfect binary tree have? What's the time complexity?