ByteDance interview question

live coding, algorithms, previous experiences...