remove duplicates from sorted array
longest common prefix
flatten binary tree t- linked list