The requirements are :
- Each child must have at least one candy.
- Children with a higher rating get more candies than their neighbors.
Will children with the same rating get the same number of candies?
Is [1, 2, 1, 2, 1] an acceptable assignment for the rating list [3, 4, 4, 4, 3]?