First we talked about my past projects, then he gave me a problem to solve on the board.
Question: Let's say you have a sensor that can generate data with the frequency of H1. Design me an API where your clients can get that information in their own preferred frequencies (h1, h2, ...). Make any assumptions you like about the API. Pseudo code is okay.