Verify method throws correct exceptions for invalid inputs
Preconditions (2)
Step 1: Call processInput with null
Step 2: Verify that IllegalArgumentException is thrown
Step 3: Call processInput with a negative number
Step 4: Verify that IndexOutOfBoundsException is thrown
✅ Expected Result: The method throws IllegalArgumentException when input is null and IndexOutOfBoundsException when input is negative