Leetcode Array Sort Method In Json Format