if abs ( i - j ) > k , then that element is not at - most k distance away from its target position . Thus , ' arr ' is not a k sorted array
if ( abs ( i - j ) > k ) : NEW_LINE INDENT return " No " NEW_LINE DEDENT