Mantra Labs interview question

puzzles codings c java sql dbms