Savy Softwares interview question

sql joins