A quick algo test for interviews. Still needs a lot of work.