6 test cases with complete implementation_Sridevi