Create SRM 583-1

Solution to SRM 583 Question one
Merge pull request #1 from perfectmak/TopCoder

Create SRM 583-1