Pergunta de entrevista da empresa Huawei Technologies

Just directly solve the leetcode problem