Pregunta de entrevista de Teamnet

I don't remember exactly, two leetcode easy problems