complexity problem

complexity problem
1