Leetcode 468 Cs Interview Question