Amazon interview question

Print a random line