Maximize Robbery Without Triggering Alarm

# Introduction In this challenge, we will be implementing a function named `rob` in the `rob.js` file. The function takes in a list of non-negative integers representing the amount of money hidden in each house. The goal is to calculate the maximum amount of money that can be robbed without triggering the alarm, considering that adjacent houses have a security system connected. Two examples are provided to illustrate the expected behavior of the function.

|60 : 00

Click the virtual machine below to start practicing