Green Dot interview question

simple programming task to select data from table and then filter it