Upper Confidence Bound (UCB) - Upper Confidence Bound in R - Step 4