Extract Character From String Python Functions Interview