If next element is also same , then there are multiple occurrences , so print it
print ( arr [ i ] , end = " ▁ " ) NEW_LINE elif it <= n - 1 : NEW_LINE print ( v [ it ] , end = " ▁ " ) NEW_LINE else : NEW_LINE print ( - 1 , end = " ▁ " ) NEW_LINE