Always getting runtime in the given question Problem You are given an array A consisting of N integers.