Charles Schwab interview question

How would you refactor this code?

Interview Answer

Anonymous

Jun 18, 2016

See code.

11