House Robber

You are planning robberies on a street where each house stores some cash in nums[i]. Two adjacent houses share a linked alarm system, so robbing both in one night triggers the police.

Return the maximum money you can steal without robbing two neighboring houses.

Examples
Input: [1,2,3,1]
Output: 4
Hints
Related Problems

House Robber

You are planning robberies on a street where each house stores some cash in `nums[i]`.