Qualcomm interview question

Find the error with the following c code and correct them