Tell me about a medium-level LeetCode coding problem you would solve and walk me through your approach.