Remove duplicates from sorted array while keep each number twice.