Solved SPOJ Problems