Hexaware Technologies Interview Question

Puzzles,logical questions, Questions around basics of C, C++, SQL