Unisys interview question

Basic C and java programs