PAT (Programming Ability Test) execise code