Update student_func.cu

Added working solution for student_func.cu for HW1.