KPMG interview question

Join two table in sql