Welcome to the Zipmex backend challenge! Thanks for attempting it, we wish you good luck!
We prefer well-thought out, quality code over quick-and-dirty solutions. So - please take your time, if you need it.
- Create an server application in your language/framework of choice.
- Write an algorithm that will take a
JSON
object structured like Appendix 1 Input and transform it into the structure shown under Appendix 2 Output. In other words, the algorithm will place "children" objects under the correct "parent" objects.