SLK Group interview question

Write a code to get the even numbers