IGT Interview Question

Sort & De-duplicate an array using Javascript or C#