Pregunta de entrevista de CEVA

One question with algorithm optimization