LinkedIn interview question

Sliding window question and then a recursive backtracking question.