Example 1heightChecker()InputCopyheights = [1,1,4,2,1,3]OutputCopy3WhySorted: [1,1,1,2,3,4] — indices 2, 4 and 5 differ.