ByteDance Interview Question

They asked a front-end JavaScript question along with mediums and hards for backend