The following example shows how to use Arrays.fill API. We can either
fill the entire array with specified character or just a specified range.
Here fromIndex is the index of the first element (inclusive) to be filled with the specified value
and toIndex is the index of the last element (exclusive) to be filled with the specified value.