Google interview question

Manhattan Distance Algorithm