Adobe interview question

Leetcode medium and some ML depth related questions.