WD Interview Question

puzzles and coding, scenario based