Insticator interview question

basic java questions