1010data interview question

Solve general algorithm problems.