Interview question asked to Software Engineers interviewing at Indeed.com, Google, Splunk and other companies. Original question asked: Implement the next permutation algorithm..