Infosys Interview Question

Coding assessment part 1: time and space complexity in code (big O)