solve level 2 but without string.maketrans