Given a two-dimensional array of integers and a row index
r
, reverse the given row.