Futurex Interview Question

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