employer cover photo
employer logo
employer logo

Enosis Solutions (Bangladesh)

Is this your company?

Enosis Solutions (Bangladesh) interview question

Problem Statement:You are given an array of objects where each object represents a node. Each node has an id, a name, and a parentId. If the parentId is null, it means the node is the root. Write a function to transform this flat array into a deeply nested tree structure.