Create triplets.cpp

brute force