EXL Service interview question

based on C and SQL