R Systems Interview Question

Group Join using lamda expression.