Frage im Vorstellungsgespräch bei Microsoft

Write how tfidf works and try to implement it using python?