Since Microsoft started asking puzzles and then everybody influential (google, apple, amazon, facebook) copied it and making it main stream. The result is you either get puzzles for interview or the other extreme where they ask you questions on obscure API methods and functions.