The catch with coding is You can't afford to be vague. You need to gather the requirements. Put them in precise logical structure. Implement it in code. And if it doesn't work, figure out backwards from code to output.
0
3
4
330
0