Elementum interview question

Standard algorithm questions, coding exercises