Started triplets, naive approach, can't submit to HackerRank atm