Viasat interview question

Coding round, followed with technical discussions