C++ Simple and Clean Solution
\nclass Solution {\npublic:\n    int minMovesToSeat(vector<int>& arr1, vector<int>& arr2) {\n        sort(arr1.begin(),arr1.end());\n        sort(arr2.begin(),a
```\nclass Solution {\npublic:\n    int minMovesToSeat(vector<int>& arr1, vector<int>& arr2) {\n        sort(arr1.begin(),arr1.end());\n        sort(arr2.begin(),arr2.end());\n        int ans=0;\n        for(int i=0;i<arr1.size();i++)\n        {\n            ans=ans+abs(arr1[i]-arr2[i]);\n        }\n        return ans;\n    }\n};\n```
['C', 'Sorting', 'C++']