Difference Between Two Objects Leetcode Problems