Pregunta de entrevista de Huawei Technologies

an algorithm to count 1 to 100