Hansa Cequity interview question

Joins