Infineon Technologies interview question

Asked me to solve a coding problem in technical interview