Charles Schwab interview question

basics of oop and leetcode question