Wayfair interview question

Isomorphic Strings