Add eg7: use 2 pointers to take the inversion of an array