WD interview question

Basic coding questions and puzzles