QuintoAndar interview question

Write a function that checks if it is possible to sort a passed array with only one swap operation.