HubSpot Interview Question

Coding challenge was a function that pulls data from a REST API and then uploads to another API. There was some data processing in between that required some matching and intersecting and grouping by. Write a function that takes a string of characters and an integer n and returns the most frequent n-gram. Example: for ‘abcdabxe’ and 2 returns ‘ab’. If there are more than one with the same frequency, return the first one you encountered. Modify this to return the most frequent one. Given an array of integers and a number n, return true/false if there is a pair that sums to that number. Design question. Design a weather widget that pull data from a meteo service API which makes data available every hour. Then avoid pulling the data from it all the time if there are no changes. Then what happens when you scale this to lots of users. DB questions. Social network with Person and Friendship and Post and how would you represent this. How would you write a query for the wall? How would you do infinite scrolling? Questions about how indexes work, which index would you create for this or that query etc.