Cvent interview question

1 coding round.