Retool Interview Question

Leet code medium on arrays