This program i wrote to multiply any kind of matrix if it satisfies condition
most of the code is used to take input only the part where the function needs to take in