Leegality interview question

leetcode easy questions were asked