ByteDance interview question

Calculate width of a binary tree.