Simple programs for exercises and interview questions