Banxware Interview Question

Coding challenge related to algorithms.