Pregunta de entrevista de Huawei Technologies

Do 2 Codeforces problems and explain the process