Pregunta de entrevista de HCLTech

Is there anything noticeably wrong with this code involving pointers?