Amazon Interview Question

To print failed and passed students