Microsoft Interview Question

Check if the two given arrays have the same elements