F(x) Data Labs interview question

there were some sql query and there was question about write programm for finding odd even number