Could you code a function to calculate the root mean squared error between two arrays?

Free for the first 3 answer contributors

Interview question asked to Machine Learning Engineers and Data Scientists interviewing at Twitch, NetEase, Noom and others: Could you code a function to calculate the root mean squared error between two arrays?.