Futurex interview question

A basic C code was given which can be used to encrypt data.