Pleo interview question

CodeSignal task. Usage of data structures basically. Not difficult, actually cool if you remove the CodeSignal and time restrictions.