Following the series of java exercises as FANG preparation for an interview, here we go with another one from topcoder.
In a galaxy far far away… each week has N days.
Luke Skywalker has exactly N shirts.
The shirts are numbered 1 through N.
Each day he wears one of those N shirts.
Each week he wears each shirt exactly once.