Vanisb Technology interview question

Basic from c java