Input arrays are not sorted


#1

A : [ -50, -41, -40, -19, 5, 21, 28 ]
B : [ -50, -21, -10 ]
Given input arrays are not sorted.


#2

Sadly It is!!..


#3

The given array is sorted…
if absolute value of the negative number is high ,then it is lesser than the negative number having absolute value lower than previous negative number
so
2>1 but -2<-1

so -50<-40<-40<-19<5<21<28(sorted :slight_smile:)