Amazon interview question

Leetcode easy(string manipulation) + easy/medium(BFS)