Sort An Array Alphabetically Javascript Interview Coding