isUniqueChars is done, python solution is a bit hacky