Interview question asked to Software Engineers interviewing at Mayo Clinic, Analog Devices, CureFit and other companies. Original question asked: Implement the next permutation algorithm..