Write a program to generate a bar chart for a list of numbers, where each number is between -10 and 10. Given a list of numbers, your program needs to first sort the numbers. Your program should then generate the bar chart where the left hand side represents the negative values and the right hand side represents the positive values (see example output below). Your bar chart should only use the *, | and space characters.
Example:
Input: 10 ?5 5 ?10 0
Sorted list: -10 -5 0 5 10
Output:
Bar Chart
|**********| |
| *****| |
| | |
| |***** |
| |**********|