int heightChecker(vector<int>& heights) {
vector<int> so;
so=heights;
int ans=0;
sort(so.begin(),so.end());
for(int i=0;i<heights.size();i++)
if(heights[i]!=so[i])
ans++;
return ans;
}