Tradeshift interview question

Atm technical challenge together with edge cases.