Allscripts interview question

Basic ques from oops