Algolia interview question

Remove duplicates in a JSON file and numerically sort the IDs inside it.