Pergunta de entrevista da empresa NVIDIA

find if string s is divided by string t, else return integer -1 example: - if string s ="abcdabcdabcdabcd" - string t="abcdabcd" then t can divide s so return length of string u which divides t i.e.., 4 which is length of u="abcd" if s="abdabdabd" and t="abdabd" return -1, since t doesn't divide s