// //Arrays.sort(nums);-- u can't else o/p index will come as per sorted array //ITS A PLAY WITH BINARY SEARCH-DAA SUBJ WAS SUPERBBBBBB!!!!!--thanks Striver Bhaiya ...
/*There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1 <= k < nums.length) ...