Luminary Cloud interview question

1 coding round and 4 general