Python Array Remove First And Last Element Leetcode 15089