Leetcode Implementation Strategy