Infoziant interview question

Basic Java