Superhuman interview question

Coding challenge that was mainly around Python data structures for NLP