FIS interview question

basic java questions and logical questions