CEVA interview question

One question with algorithm optimization