Needforspeed java exercise

hi everyone i am trying to solve the need for speed java exercise and i am struggling to finish the exercise can anyone help me understand how to do it? thank you

Someone might be able to, if you were to provide details of what you have done so far.

Increase your chance of getting help and look like a pro by sharing codeblocks not images. For example, you can type the following. Note, the ``` must be on their own line.
```python
for number in range(10):
total += number;
```
Discord will render that as so:

for number in range(10):
    total += number;

Click here to learn more about codeblocks: How to write a good support request | Exercism's Docs and How to ask for help with your code online | Angelika.me