Courseplay interview question

WTC for finding even and odd without using if condition?