ByteDance Interview Question

Calculate width of a binary tree.