Suresh code
added test cases for code