When the Order of St John started building Valletta on Mount Sceberras, its architects and engineers faced a serious problem – how uneven the terrain was, highs and lows, rises and throughs.