Question: 
Write a python function to check if the string is a concatenation of another string.


Model's Code:
def check_Concat(s, t):
    if len(s) % len(t) != 0:
        return False
    repeat_count = len(s) // len(t)
    return s == t * repeat_count



Sample Correct Code:
def check_Concat(str1,str2):
    N = len(str1)
    M = len(str2)
    if (N % M != 0):
        return False
    for i in range(N):
        if (str1[i] != str2[i % M]):
            return False         
    return True


Asserts:
assert check_Concat("abcabcabc","abc") == True
assert check_Concat("abcab","abc") == False
assert check_Concat("aba","ab") == False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 874 of 974: 672/874 (76.88787185354691%): success