MOURI Tech interview question

Basic c and project