Simple algorithms and programs to practice for job interviews