SimScale interview question

The functional code with recursion and geometry crunching, which was interesting to implement