Pivot Element search

We have considered the array to be sorted in ascending order, what if its sorted in descending order?

Hey Kunaldeep, it can be done if array is sorted in descending order, you just have to reverse your checks.