Pergunta de entrevista da empresa Garmin

The coding assignment was I think options of C++/Java, given 2 hours to do it. To take a list and set up a hierarchy for whole numbers, integers, odd, even etc