FIS interview question

Question on java ,sql,Puzzels,