HyperVerge interview question

Solving coding problems, related to arrays,string