ByteDance interview question

Algorithm problems and past experiences