FactSet interview question

Implement TF - IDF from scratch