Sample solutions to programming tests/exercises