Cvent Interview Question

1 coding round.