Pregunta de entrevista de Mouser Electronics

coding questions were asked to me