Algo of inverted glass

can someone help me in solving inverted glass problem