Tray.ai interview question

Nothing spectacularly complicated.