Ubisoft Interview Question

There was a codility test that tested your recursion and trees knowledge, as well as a math problem to solve.