Subarray problems. Intuitions, example walk through, and complexity analysis.