Intel Corporation Interview Question

One was a math question. One was a binary tree. One was a list/string problem