Merchant Galaxy problem solved via console app
to build the app you can use the included psake build script - just run build.bat
run the created MerchantNotes.exe and type in your input
there are also fixie tests included - run build.bat
with the argument rat
(short for run all tests)
here is a screenshot of the app with test input and output screenshot