TopCoder srms solutions