Given an integer array arr of size n, find all magic triplets in it. Magic triplet is a group of three numbers whose sum is zero. Note that magic triplets may or may not be made of consecutive numbers in arr.