Day6 Pull Request for Code Review

For optimization, it is better to only call the jsonArray.length() once (outside the for-loop).
Put this inside a variable so that the variable will store the value once.
Then use that variable inside the for-loop condition:
```
int jsonArrayCount = jsonArray.length();

for (int i = 0; i < jsonArrayCount; i++) {
```
:bow: