• I do not want to use reverse function.please check the code I posted and correct what wrong I did.thanks