Epsilon interview question

SQL, DBMS, logic building, one coding question.