Fundbox interview question

Some array algo and a system design question