Amazon SDE I Phone Screen
Anonymous User
676

you are given an input string that is separated by spaces.

str = "cat tac true true true true goose sheesh esoog"

Return all of the groups we can make of strings where a string reversed exists in the list

output: [("cat", "tac"), ("goose", "esoog")]

Comments (5)