Good day guys!,

I'm quite surprised by the number of responses for my "little

brain exercise". I hope you won't get into a point realizing

that you have just wasted your highly-paid time.

Nobody is supposed to go home or be hired. In the first place,

my only purpose for posting this problem is to gather the (as many as

possible) valid answers, and not the BEST solution.

Please leave the validation and testing of your suggestions for me.

Oh, you might want to ask were would I use this, ok, i'm just thinking

if I could include this problem in the battery test for our applicants

in a programmer trainee position. And I don't think you're interested

with the job-opening, are you?

Sorry if i've scratched a match in a dry wooden forest.

Thanks for doing your job as fee-free-gurus.