Ruby method with one string and one array as arguments returning a modified merged array : I have recently started to learn Ruby. Now, I have to build a method whose arguments are one array ([Boston Celtics, LA Lakers, Chicago Bulls] and one string ("Utah Jazz"). The method should return an array with three elements: the one coming from the string should be at index[0] and the last element of the first array should not be included in the final array. Output --> [Utah Jazz, Boston Celtics, LA Lakers].

Any ideas? Thanks for helping.