Deloitte interview question

Oops conscript, write code with 1 code complexity