Stratasan interview question

Solve the follow sql problem by creating a map