Argument Rotator

Cycle through arguments in sequence upon invocation.

Asked in Codility frontend interviews