Synechron Interview Question

For the coding round they asked to code on Array/Object manipulation.