How does this code works?

PHOTO EMBED

Fri Mar 01 2024 14:30:59 GMT+0000 (Coordinated Universal Time)

Saved by @nahot

Arrays.sort(numsWithIndices, (a,b) -> Integer.compare(a[1],b[1]));
content_copyCOPY