change name of accepted algo.
add algo. sorting index according to the num list and using two pointers with O(NlgN)
sol of q001