repetations allowed logic allowed

repetations not allowed logic allowed