This rectangular six shape is pretty common to see in games. In the corner with no outside liberties it can be killed. A liberty is an empty point next to a stone or group of stones.
The key move is the placement at A.
Playing at B is also conceivable. But it gives black a chance to live. Play on to see why.