LeetCode

Beautiful Array

Click here for an explanation.