https://rakesh-trri.medium.com/rearrange-an-array-such-that-arr-j-becomes-i-if-arr-i-is-j-set-1-7341d2d6091f