athenahealth Interview Question

easy array problem, an array is given, you have to check if it is sorted or not, if sorted return true else check if you can swap any number with it to make it sorted, we can do at most once swap only. if even after swapping array is unsorted return false.