Pergunta de entrevista da empresa Test

Coding questions and asked for first round