ByteDance Interview Question

Side view of a binary tree