Beautiful Array

  • + 1 comment

    What's the approach to solve this problem?