Liberis interview question

Categorise these transactions with typescript