There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjecte
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjecte