Some coding interview tasks with implementations and tests