Remove Duplicates from Sorted Array II

Accepted solution in Python to problem “Remove Duplicates from Sorted
Array II”. The thought process is to use a flag to indicate an element
is shown twice in the output array and advance i