Descriptions:

Vasya And Array

CodeForces - 1187C