8: Contains duplicate

Given a string, find if the string contains any duplicates characters

 

Example 1

Input: Bazinga

Output: true

Explanation: a appears twice

Example 2

Input: code

Output: false

Explanation: code has no duplicate symbols