Nagarro Interview Question

Complexity of the programs Data structure