Die Roll with Optional Reroll

Medium probability interview practice: Die Roll with Optional Reroll.

You roll a fair 6-sided die. You can either keep the result or reroll once (keeping the second roll). What is the optimal strategy and expected value?