Solutions to few problems of UVaOJ/Progmming Challenges/Chapter 1