Need help?Need help to do an algorithm - MPGH