PokerStars interview question

A couple of loop and array-based C/Java programs.