Virtusa interview question

It was mainly based on Java