Sollicitatievraag bij Volkswagen Group

Identify the output / mistakes in the program. Write a code to identify an even or odd number without using modulo operation. Questions related to Object oriented which I did not know at that point