Type: Posts; User: Asad Inaam
try the pseudocode given above and make sure you get the loops right....best of luck :)