Dublin is situated on the coast of river Liffey in Ireland. The river partitions the city in two parts different…