Ruby and Postgres functions for handling SAT grid-in responses using the College Board's rules.