Teva Pharmaceuticals interview question

Questions from SQL and C programs