NGSoft interview question

two sum, binary trees, c#