Johnson Controls interview question

Question on c programming and image processing