You are planning to rob houses along a street. Each house holds some amount of money, given by nums. The only constraint is that adjacent houses are wired together — robbing two neighbouring houses on the same night triggers the alarm.
Return the maximum amount of money you can rob without ever robbing two adjacent houses.
[1,2,3,1][2,7,9,3,1][5][2,1,1,2][0][100,1,1,100][6,7,1,30,8,2,4]