Amazon interview question

To print failed and passed students