pragma solidity ^0.4.24;


contract ArrayIndexCheck {
    function indexCheck(uint a) public pure returns(uint) {
        uint[] memory _array = new uint[](a);
        _array[4] = a;
        return _array[4];
    }
}