In the earliest, walls were built to mark the borders and to keep the opponents away. Moreover, the walls are…