Pregunta de entrevista de Infineon Technologies

Asked me to solve a coding problem in technical interview