Pan-United Corporation interview question

basic theory from db scope