CoreView Systems interview question

They give me two program