Qred interview question

Code a banking system lol