Oracle Interview Question

ATM machine algorithm (Leetcode Medium)