This contains coding for practicing algorithm