Getting stuck at looking for solutions to understand

Hi,

I got completely stumped on in_words and was trying to google around for ideas as to how to approach the problem and ended up looking at the solution provided. Is that an ok thing to do? Or are there better ways to figure out a problem?

Thanks,
Ryan