Thank you Ram sir for giving me your valuable time and helping me out thanks a lot @ram2010, ss16021981; pls list out how the prob was solved, so that all can benefit.