Print Duplicate Elements In Array In Python Problem