Implement a function named check_problem_difficulty that evaluates the difficulty of a problem based on user opinions. The function should determine if the problem is considered "HARD" or "EASY" based on the given opinions.
Functionality Requirements:
The function takes two parameters:
An integer n, which represents the number of opinions.
A list called opinions of length n, where each element is either 0 or 1. A value of 1 indicates a hard opinion, and a value of 0 indicates an easy opinion.
The function should return:
The string "HARD" if at least one opinion is 1 in the list.
The string "EASY" if all opinions are 0.
Input/Output Requirements:
Input:
n (1 <= n <= 100): An integer, the number of opinions.
opinions: A list of integers of length n, where each integer is either 0 or 1.
Output:
A string "HARD" if there is at least one 1 in opinions, otherwise "EASY".
Implementation:
Write the function in a file named /app/solution.py. Ensure it adheres to the specified input/output requirements.
Example cases for the function:
Input: check_problem_difficulty(5, [0, 0, 0, 0, 0]) should return "EASY".
Input: check_problem_difficulty(3, [0, 1, 0]) should return "HARD".