My Java solution to Facebook's Norcal Hackathon puzzle. It's not optimized or the best way to do it (yes, I know). The ideal way to do it is using bit operands, but I have homework... yay