Alarm.com interview question

Stack manipulation, find minimum number of swaps to sort array, array searching