Same Concept, A condition more


#1

IF you have solved Remove Duplicates from sorted Array, then this is a cake walk with one additional if Condition