Let's imagine you've discovered a list of intergalactic treasures represented by integers in an array arr. Now, you've got a peculiar rule out here in the cosmos: you can only pick up the treasures ...