Find secret word with match-count feedback | Google Coding Question