2560. House Robber IV - Explanation

Problem Link