n sum problems and some practices