amazon interview string question