Solutions of Some SPOJ Programming Problems