Pergunta de entrevista da empresa Huawei Technologies

an algorithm to count 1 to 100