Aristocrat interview question

Design, coding Advance C++