Solutions of SPOJ