Visa Inc. interview question

Basic oops and DBMS questions