https://rakesh-trri.medium.com/rearrange-an-array-in-order-smallest-largest-2nd-smallest-2nd-largest-dc6b42bf5801