Code snippets for programming and algorithm interview questions