Trellix Interview Question

Leetcode question - string and array questions