Write a program that prints YES if all students are present for the day, otherwise print NO.
Implement check_all_present(attendance), where attendance is a non-empty list of integers. Each value is 1 for present and 0 for absent. Return the string "YES" if every value is 1; otherwise return "NO". The function return value represents the required output.
def check_all_present(attendance):