Compare The Triplets Hackerrank Solution