PMC-Sierra interview question

C algorithms