Not working - Elements can repeat atmost twice. Rest of them should be removed