Collabera interview question

sql queries