Pergunta de entrevista da empresa ByteDance

The first one is very easy. The second one is about statistics. The last two are about algorithms.