/atm-kata

Primary LanguageTypeScript

ATM Kata

Write a function that implements an ATM. There are unlimited quantities of 500€, 200€, 100€, 50€, 20€ and 10€ bills. The algorithm aims at delivering the lowest quantity of bills. atm(270); // 1 x 200€ bill, 1 x 50€ bill and 1 x 20€ bill.