TikTok Interview Question

House Robber II on Leetcode