Difference Between Two Objects Leetcode Solutions