Autodesk interview question

Leetcode basic computer science knowledge