can this wall be removed?

We are interested in buying a house but there’s this weird wall in the master bedroom and i’m wondering if people know if it can be removed safely?