Pregunta de entrevista de Aptiv

Basic/easy leetcode coding questions. both the interview lasted 1 hour