Code Review: Remove duplicates from a sorted array (2 Solutions!!)

Published --