ByteDance interview question

Data Structure questions using queue