TikTok Interview Question

Find the string's common divisor.