Adding two more practice problems, SPOJ contest from Ahmed-aly random contest