Easy
Given an array nums and an integer target, first sort nums in non-decreasing order. Return the list of indices i (in increasing order) such that after sorting nums[i] == target. If target is not present, return an empty list.
Input: nums = [1,2,5,2,3], target = 2 Output: [1,2]
Input: nums = [1,2,5,2,3], target = 3 Output: [3]
Input: nums = [1,2,5,2,3], target = 5 Output: [4]