All On Block Interview Question

Basic algorithm questions and few puzzles