Pregunta de entrevista de Autodesk

binary search, check if 2 strings are written using the same characters