Volansys interview question

basic oops concepts