General Motors (GM) interview question

What is activation function? Write a code to print even numbers.