This is a pure function that can be extracted from the component and defined outside of it. Good use of recursion & reduce \U0001f44d    ```suggestion  ```  See the below comment about adding the function back into the module but outside the component  