Shift operator removes an element from the begining of an array.

Push operator adds an element at the end of the array.

Pop operator removes an element at the end of the array.

Original arr1 is :

kkKJKKD

MKMJKMN

added element using unshift operator

now arr1 is:

kedarKOOLkkKJKKDMKMJKMN

removed element using shift operator

now arr1 is

kkKJKKD

MKMJKMN

now push pop results

original arr2 is :

MANDAR4 KK 3d KEDAR1

added element using push operator.

Now arr2 is:

MANDAR4 KK 3d KEDAR1 kjk

removed element using pop operator.

Now arr2 is:

MANDAR4 KK 3d KEDAR1

Joining the array with :: looks like this ->MANDAR4::KK::3d::KEDAR1

This is one string

Strings splitted array is: This is one string

original arr3 is:

MANDAR4 3d KEDAR1

sorted arr3 is :

3d KEDAR1 MANDAR4

Length of arr2 is :3

Length of arr1 is :2