Sonar Interview Question

Why this snippet of the code mark an issue