Added non repeated char check cpp