Implement TF–IDF with sparse matrices | Thumbtack Interview Question