Pregunta de entrevista de Huawei Technologies

leetcode medium easy question and several bq