Citi interview question

Joins