Pergunta de entrevista da empresa Cateina Technologies

coding questions first is based on for loop second is based on pattern matching