O Level Exam : Practical Question

🖥 Output: