Decentraland interview question

sort out recursive algorithm to generate a metaverse