Reverse Array Using Two Pointer In Python For All Selected Lines