General Motors (GM) Interview Question

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