Python solution with dictionary

```
mapp = {}
for i in range(len(s)):
if s[i] not in mapp:
if t[i] in mapp.values():
return False
mapp[s[i]] = t[i]
continue
if mapp[s[i]] != t[i]:
return False
return True
```