Leetcode Reverse An Array Problem In Python For All Selected Lines