ByteDance interview question

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