Add leetcode 2214 implement.