Add Solution of UVA 100
Reformat code