You are a robber planning to rob houses along a street. Each house has a certain amount of money. Adjacent houses have security systems that will alert police if two adjacent houses are robbed. Return the maximum amount you can rob without alerting police.
nums = [1,2,3,1]4nums = [2,7,9,3,1]12