Pregunta de entrevista de Medtronic

Coding question was been asked