Java Program to insert elements in any position of an array.

Output: