Patrick McConlogue offered him the choice between $100 cash or a laptop and an opportunity to take coding lessons.