Delete Operation For Two Strings Leetcode 150