Two Pointer Approach Leetcode Rating