SAP interview question

Puzzles, basic sorting algorithms, oops concepts, dbms queries.