This study is conducted in adults with rectal cancer that has a certain genetic type. The main goal is to find out whether a longer treatment period with dostarlimab can help more participants have a complete response to treatment and avoid standard treatments like chemotherapy, radiation treatment, or surgery. Scans and endoscopy tests will be conducted to see if the tumor disappears and how long the cancer stays under control. The study will also collect information on side effects and health outcomes after dostarlimab.