Lively interview question

Write code to implement a simple banking algorithm.