Check for repeating elements - check for all cases