Solve sliding-window and disjoint-string-pairs tasks | Netflix Coding Question