Nutanix interview question

Leetcode coding questions on array and strings