Sonar Interview Question

3 hours to solve a technical task focused on clean code and functionality