What will be the value of vals after executing the given code snippet?
a) [1, 2, 2]
b) [1, 2, 1]
c) [2, 1, 2]
d) [2, 2, 1]