Visa Inc. interview question

Some inheritance, basic javascript, and hash.