For an explanation, refer to the solution submitted by tomarken in this location.
blackjack
flooble's webmaster puzzle