CMiC Interview Question

Solve the code