Zscaler Interview Question

A code related to arrays and restructing them