Suppose there were n numbers in an array S1, S2, S3, S4.......SN rearrange them in a such a way that they satisfy bellow property.  S1 < S2 > S3 < S4   #interview #array