EnerKnol Inc interview question

Standard problems, 1 algorithms, 1 recursion, 1 MySQL. You can use any language. The problems are white board only.