apple pie's submission of Vedant and his Hidden Array | CodeChef