LinkedIn interview question

1 Leetcode question and 5 multiple choice