Why ?
Why modify from array to list and not get in argument just a List when you use that in your solution?