Qualcomm Interview Question

Find the error with the following c code and correct them