Cognizant interview question

sql join blw two tables