Leetcode Array Sort Python Method Chaining Jquery Interview