Virtusa interview question

Basic java , sql.