In a school there are Indian, NRI and Foreigners studying. Their heights are given in three different values. To represent their class, they need to stand in height order in a single line. Given three arrays X, Y, Z of different sizes M, N and O, write a program to merge the three arrays and make it a single sorted array.
Example:
Input:
5
2 7 9 15 25
4
5 8 13 20
5
1 45 3 4 3
Output:
2 2 3 3 4 5 7 8 13 15 20 25 45
Solution:
Coming....