Difference Between Two Strings Leetcode Problems Arraylist