You only need to write one function and some unit tests that prove (first and foremost to you) that the function does what you intended. You don't need to do more than that. For example, you don't need to also write all the dependencies, readme, include runtime config and dependency management, pay people on Fivr to generate some fake data, develop an entire web app, put it in a Docker container and deploy it to AWS, incorporate, raise money and make billions from our coding assignment. One function and some tests is all we need.
We use JavaScript, but feel free to use any language you're comfortable with. Please don't use JavaScript just because we use JavaScript. It's actually quite fun to see solutions in different languages. But please don't use a different language just because we said this.
We will pretend we are giving you a few existing dependency functions. We described their interface below. You should use them to write your function. Even though we're not actually giving