Deloitte Interview Question

Oops conscript, write code with 1 code complexity