WeInvest Interview Question

Coding round about seating arrangement