task A

inverted