Autodesk interview question

DSA question