MathWorks Interview Question

Design a ATM system, with java object and function.