2263: Make Array Non-decreasing or Non-increasing

Problem Statement