C # program to check if two given multisets are equivalent
using System ; using System . Collections . Generic ; class GFG { static bool areSame ( int [ ] a , int [ ] b ) { if ( a . Length != b . Length ) return false ;