Two Pointers Question On Leetcode Contest Predictor