Insightly interview question

String and array manipulation, binary trees, system and database design