Code Review: Sort, & find out duplicates and missing elements in an array (2 Solutions!!)

Published --