Domanda di colloquio di OneAdvanced

They asked me to invert an integer's binary representation using recursion and then convert the recursive solution into an iterative one. They also asked SQL questions on joins, subqueries, which approach is more efficient, and explained Common Table Expressions (CTEs).