First of all, thanks for taking the time working on this task.
Feel free to write down your thoughts or approach below the task description if you can't come up with a solution.
Please review and provide comments on this code as if you were giving feedback to a junior team member.
Please write this function
Please write some thoughts/ideas (e.g. 5 bullet points) to these questions