Interview Frontend Interview + Virtual Onsite Snapchat

Sharing some interview experience, as there are relatively few frontend-related ones. Overall, the difficulty level is medium to hard, leaning more towards algorithm and JS language features compared to other companies like Google, Apple, Facebook, Netflix, etc. This time, there were no questions on DOM API or HTML/CSS.

Onsite:
Seems like someone has posted about it, but there are variations.
The task was to provide a list of paragraph lists, for example, [“today is a good day”, “good day”, “is a good dog”, …], and find the top k most frequent phrases.

Please help!