Compnova interview question

Basic C