Fundbox Interview Question

Some array algo and a system design question