218. Emoji Health Bar
Easy · String
Build a health bar as a string! Given `hp` (0–100) and `max` (always 100), return a string of 10 characters: '█' for each 10% of health, '░' for the rest. E.g., 70hp → '███████░░░'
Examples
Example 1 Input: hp=70, max=100 Output: "███████░░░" Explanation: 7 filled, 3 empty
Example 2 Input: hp=0, max=100 Output: "░░░░░░░░░░" Explanation: All empty
Constraints
- 0 ≤ hp ≤ 100