Solved SPOJ Questions