this time we can read the array from file and then will be sorted in output file.out
input output file