ByteDance Interview Question

Prepare for Hard leetcode question