Why two adjacent children with equal rating don't get equal candies?

In that test case, the number of candies to be given would be: 121 (total 4)
The rules say that each child must get a bigger amount of candy if he/she has a higher rating than the neighboring kids. The 3rd kid doesn't have any kid beside him/her with a lower rating, so optimally you can just give that kid a single candy and it would still be compliant to the rules.

@franz.sarmiento I understand the problem's description and solution, but it looks really really unreasonable(fair) to me!