Refer to the passage below and then answer the question afterwards in the same language as the passage:

Passage: This building was built in 1842 by Prince Ghulam Mohammed, the youngest son of Tipu Sultan.

Question: What year did Mohammed have the building erected?
1842