added comments
take input from command line for array
in output for taking array provide sorted in content
array from input