Pregunta de entrevista de Huawei Technologies

Just directly solve the leetcode problem