In the leetcode problem description the target is zero but during the interview the target is provided by the user and the triplets should be sorted internally and finally the whole result should also be sorted.
Modified Three Sum