Ubisoft interview question

Coding challenge consisted of easy to medium leetcode questions.