Pregunta de entrevista de LinkedIn

Sliding window question and then a recursive backtracking question.