Rakuten Ready interview question

Given an integer array, find all triplets whose sum equal to zero.