You are a professional robber planning to rob houses along a street. Each house has a stashed amount of money. Return the maximum money you can rob tonight without alerting the police (cannot rob adjacent houses).
Examples
Input:nums = [1,2,3,1]
Output:4
Rob house 1 (money = 1) and house 3 (money = 3). Total = 4.
Input:nums = [2,7,9,3,1]
Output:12
Rob house 1 (money = 2), house 3 (money = 9), and house 5 (money = 1). Total = 12.