Simple question but tricky

Wire the centre contact to GND, the outer ones to 5V and the common connection to an Arduino pin set to a pinMode of INPUT_PULLUP. When digitalRead() of the pin returns LOW then you know that the switch is in the centre position