counting triplets with sum less than k
InOrder Iterator in a BST
Project Euler 114